package com.kakaxi.mybilibili.bean;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 直播信息类
 * Created by kakaxi on 16/9/20.
 */

public class LiveItemBean {

    /** 直播标题 **/
    private String title;

    /** 直播房间id **/
    @JSONField(name = "room_id")
    private int roomId;

    /** 直播版本检查 **/
    @JSONField(name = "check_version")
    private int checkVersion;

    /** 直播线路号 **/
    private int online;

    /** 直播板块 **/
    private String area;

    /** 直播板块id **/
    @JSONField(name = "area_id")
    private int areaId;

    /** 直播链接 **/
    private String playurl;

    /** 直播接受质量 **/
    @JSONField(name = "accept_quality")
    private String acceptQuality;

    /** 直播传播类型 **/
    @JSONField(name = "broadcast_type")
    private int broadcastType;

    /** 直播是否为tv **/
    @JSONField(name = "is_tv")
    private int isTv;

    /** 直播主播信息 **/
    private LiveOwnerBean owner;

    /** 直播封面信息 **/
    private LiveCoverBean cover;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public int getCheckVersion() {
        return checkVersion;
    }

    public void setCheckVersion(int checkVersion) {
        this.checkVersion = checkVersion;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public String getPlayurl() {
        return playurl;
    }

    public void setPlayurl(String playurl) {
        this.playurl = playurl;
    }

    public String getAcceptQuality() {
        return acceptQuality;
    }

    public void setAcceptQuality(String acceptQuality) {
        this.acceptQuality = acceptQuality;
    }

    public int getBroadcastType() {
        return broadcastType;
    }

    public void setBroadcastType(int broadcastType) {
        this.broadcastType = broadcastType;
    }

    public int getIsTv() {
        return isTv;
    }

    public void setIsTv(int isTv) {
        this.isTv = isTv;
    }

    public LiveOwnerBean getOwner() {
        return owner;
    }

    public void setOwner(LiveOwnerBean owner) {
        this.owner = owner;
    }

    public LiveCoverBean getCover() {
        return cover;
    }

    public void setCover(LiveCoverBean cover) {
        this.cover = cover;
    }

    /**
     * 直播的主播信息类
     */
    public static class LiveOwnerBean {

        /** 主播头像链接 **/
        private String face;

        /** 主播编号 **/
        private int mid;

        /** 主播昵称 **/
        private String name;

        public LiveOwnerBean() {
        }

        public LiveOwnerBean(String face, int mid, String name) {
            this.face = face;
            this.mid = mid;
            this.name = name;
        }

        public String getFace() {
            return face;
        }

        public void setFace(String face) {
            this.face = face;
        }

        public int getMid() {
            return mid;
        }

        public void setMid(int mid) {
            this.mid = mid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    /**
     * 直播的封面信息
     */
    public static class LiveCoverBean {

        /** 封面链接 **/
        private String src;

        /** 封面高度 **/
        private int height;

        /** 封面宽度 **/
        private int width;

        public LiveCoverBean() {
        }

        public LiveCoverBean(String src, int height, int width) {
            this.src = src;
            this.height = height;
            this.width = width;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

        public int getWidth() {
            return width;
        }

        public void setWidth(int width) {
            this.width = width;
        }
    }

}
